package com.openess.bigsearch.engine.DAO;

/**
 * 装载数据库中的数据
 * 
 * @author xiaoshuo
 * 
 */
public class DBData {
	protected String docID;
	protected String rowkey;

	protected String url;

	protected String title;
	protected String keywords;
	protected String description;
	protected String content;
	protected String interest;
	protected String category;
	protected String website;
	protected String source;
	public DBData() {
	}

	public DBData(String id, String url, String title, String keywords,
			String description, String content) {
		this.docID = id;
		this.url = url;
		this.title = title;
		this.keywords = keywords;
		this.description = description;
	}

	public DBData(String id, String rowkey, String url, String title,
			String keywords, String description, String content,
			String interest, String category, String website, String source) {
		this.docID = id;
		this.rowkey = rowkey;
		this.url = url;
		this.title = title;
		this.keywords = keywords;
		this.description = description;
		this.content = content;
		this.interest = interest;
		this.category = category;
		this.website = website;
		this.source = source;
	}

	public String getCategory() {
		return category;
	}

	public String getContent() {
		return content;
	}

	public String getDescription() {
		return description;
	}

	public String getDocID() {
		return docID;
	}

	public String getInterest() {
		return interest;
	}

	public String getKeywords() {
		return keywords;
	}

	public String getRowkey() {
		return rowkey;
	}

	public String getSource() {
		return source;
	}

	public String getTitle() {
		return title;
	}

	public String getUrl() {
		return url;
	}

	public String getWebsite() {
		return website;
	}

	public void setDocID(String docID) {
		this.docID = docID;
	}

	@Override
	public String toString() {
		String str = "docID = " + docID + ", url = " + url + ", title = "
				+ title + ", keywords = " + keywords + ", desctiption = "
				+ description + ", content = " + content;
		return str;
	}
}